package com.openweixin.sheknows.service.impl;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.openweixin.sheknows.dao.UserDao;
import com.openweixin.sheknows.domain.User;
import com.openweixin.sheknows.service.UserService;
@Service
public class UserServiceImpl extends BaseServiceImpl<User, Integer> implements UserService { 
	@Resource
	public void setBaseDao(UserDao dao) {
		super.setBaseDao(dao);
	}
	
	public void update(User u) {
		User bean = super.get(u.getUid());
		bean.setName(u.getName());
		bean.setAge(u.getAge());
		bean.setCompany(u.getCompany());
		bean.setTitle(u.getTitle());
		bean.setProfession(u.getProfession());
		bean.setCompanyIntroduction(u.getCompanyIntroduction());
		super.update(bean);
	}
}
